package cn.zxl.spring.holiday.job.mapper;

import cn.zxl.spring.holiday.job.domain.Role;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author bofeifei
 * @since 2021-10-01
 */
@Repository
public interface RoleMapper extends BaseMapper<Role> {
    void saveOne(Role role);

    List<Role> findByEmployeeId(Long id);

    void saveEmpAndRol(@Param("id") Long id, @Param("roleIds") Long[] roleIds);

    void removeEmpAndRol(Long id);

    List<String> findRolesByEid(Long id);
}
